<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2023/6/9 0009
  Time: 12:41
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--加载JSTL，Java标准标签库--%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<a href="index.html">首页</a>
<hr>
<h1>班级信息操作</h1>
<a href="classRoomSave.jsp">添加</a>
<hr>
<h2>班级信息列表</h2>
<table width="50%" border="1px">
    <thead>
    <tr>
        <td>id</td>
        <td>班级名称</td>
        <td>操作</td>
    </tr>
    </thead>
    <tbody>


    <c:forEach items="${requestScope.classRooms}" var="classRoom" >
    <tr>
        <td>${classRoom.id}</td>
        <td>${classRoom.name}</td>
        <td><a href="ClassRoomController.action?option=del&id=${classRoom.id}">删除</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="ClassRoomController.action?option=editBefore&id=${classRoom.id}">修改</a>   </td>
    </tr>
    </c:forEach>
    </tbody>
</table>

</body>
</html>
